package org.edu.modules.sxjy.controller;

import com.github.xiaoymin.knife4j.annotations.ApiSort;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import javax.servlet.http.HttpServletRequest;
import org.edu.common.api.vo.Result;
import org.edu.common.aspect.annotation.AutoLog;
import org.edu.modules.sxjy.feign.VeStuAipClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Api(tags={"学生评定信息"})
@RestController
@RequestMapping({"/sxjy/stuEvaluate"})
@ApiSort(60)
public class VeStuAipController
{
    private static final Logger log = LoggerFactory.getLogger(VeStuAipController.class);
    @Autowired
    private VeStuAipClient veStuAipClient;

    @AutoLog("通过id查询")
    @ApiOperation(value="通过id查询", notes="通过id查询")
    @GetMapping({"/veBaseStudent"})
    public Result<?> veBaseStudent(@RequestParam(name="id", required=true) String id)
    {
        return this.veStuAipClient.veBaseStudent(id);
    }

    @GetMapping({"/queryPageListByStuId"})
    public Result<?> queryPageListByStuId(@RequestParam(name="stuId", required=true) Integer stuId, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, HttpServletRequest req)
    {
        return this.veStuAipClient.veStuHealthReportByStuId(stuId);
    }

    @GetMapping({"/hqStuPositionApply"})
    public Result<?> hqStuPositionApply(@RequestParam(name="stuId") Integer stuId, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, HttpServletRequest req)
    {
        return this.veStuAipClient.hqStuPositionApplyByStuId(stuId);
    }

    @GetMapping({"/veStuReward"})
    public Result<?> veStuReward(@RequestParam(name="stuId") Integer stuId, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, HttpServletRequest req)
    {
        return this.veStuAipClient.veStuRewardByStuId(stuId);
    }

    @GetMapping({"/veStuPunish"})
    public Result<?> veStuPunish(@RequestParam(name="stuId") Integer stuId, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, HttpServletRequest req)
    {
        return this.veStuAipClient.veStuPunishByStuId(stuId);
    }

    @GetMapping({"/findStuHygiene"})
    public Result<?> findStuHygiene(@RequestParam(name="stuId") Integer stuId)
    {
        return this.veStuAipClient.findStuHygiene(stuId);
    }

    @GetMapping({"/findStuCheck"})
    public Result<?> findStuCheck(@RequestParam(name="stuId") Integer stuId)
    {
        return this.veStuAipClient.findStuCheck(stuId);
    }

    @GetMapping({"/veStuLiteraryActive"})
    public Result<?> veStuLiteraryActive(@RequestParam(name="stuId") Integer stuId, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, HttpServletRequest req)
    {
        return this.veStuAipClient.veStuLiteraryActiveByStuId(stuId);
    }

    @GetMapping({"/veStuCaucus"})
    public Result<?> veStuCaucus(@RequestParam(name="stuId") Integer stuId, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, HttpServletRequest req)
    {
        return this.veStuAipClient.veStuCaucusByStuId(stuId);
    }
}
